﻿@model UserProfileEditModel
@{
    string userName = ViewData["UserName"] as string;
    ViewData["UserSettingsMenu"] = UserSettingsMenu.BaseCase;
    Html.IncludeScript("~/Scripts/tunynet/tn.solarlunar.js");
}
        @Html.HiddenFor(model => model.UserId)
        <tr>
            <th>用户名：</th>
            <td>
                @if (string.IsNullOrEmpty(Model.AccountEmail))
                {
                    @Html.TextBoxFor(n => n.UserName, InputWidthTypes.Long, new RouteValueDictionary { { "autocomplete", "off" } })
                    @Html.ValidationMessageFor(n => n.UserName)
                }
                else
                {
                    <div class="tn-explain"><strong>@userName</strong></div>
                }
            </td>
            <th></th>
            <td><div class="tn-option">@Html.Link("修改密码", SiteUrls.Instance().ChangePassword(Url.SpaceKey()), "修改密码")</div></td>
        </tr>
        <tr>
            <th>
                身高：
            </th>
            <td>@Html.TextBoxFor(n => n.Height)</td>
            <th>
                体重：
            </th>
            <td>@Html.TextBoxFor(n => n.Weight)</td>
        </tr>
        <tr>
            <th>
                属相：
            </th>
            <td>@Html.DropDownListFor(n => n.Zodiac, new System.Collections.ArrayList() { "鼠(子)", "牛(丑)", "虎(寅)", "兔(卯)", "龙(辰)", "蛇(巳)", "马(午)", "羊(未)", "猴(申)", "鸡(酉)", "狗(戌)", "猪(亥)" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                婚姻状况：
            </th>
            <td>
                @Html.DropDownListFor(n => n.MaritalStatus, new System.Collections.ArrayList() { "未婚", "离异", "丧偶", "未婚有子女", "离异有子女", "丧偶有子女" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                是否有相亲时间：
            </th>
            <td>@Html.DropDownListFor(n => n.BlindDate, new System.Collections.ArrayList() { "随时可以", "节假日有空", "年底有空" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                购车情况：
            </th>
            <td>
                @Html.DropDownListFor(n => n.PurchaseCar, new System.Collections.ArrayList() { "未购车", "已购车", "单位用车", "需要时购置" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                是否有驾照：
            </th>
            <td>@Html.DropDownListFor(n => n.License, new System.Collections.ArrayList() { "是", "否", "正在办理" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                是否吸烟：
            </th>
            <td>
                @Html.DropDownListFor(n => n.Smoking, new System.Collections.ArrayList() { "不吸", "很反感", "不吸", "但不反感", "社交时偶尔吸", "烟不离手" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                是否饮酒：
            </th>
            <td>@Html.DropDownListFor(n => n.Drinking, new System.Collections.ArrayList() { "不喝酒", "社交需要喝", "兴致时小酌", "酒不离口" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                月薪：
            </th>
            <td>
                @Html.DropDownListFor(n => n.Salary, new System.Collections.ArrayList() { "0—1000", "1000—3000", "3000—4000", "4000—5000", "5000—8000", "8000—10000", "10000以上" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                是否愿意上门女婿：
            </th>
            <td>@Html.DropDownListFor(n => n.SonInLaw, new System.Collections.ArrayList() { "不用考虑", "可以考虑" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                住房情况：
            </th>
            <td>
                @Html.DropDownListFor(n => n.TheHousing, new System.Collections.ArrayList() { "与父母同住", "租房", "已购房", "住单位房", "住亲朋家" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                民族：
            </th>
            <td>@Html.DropDownListFor(n => n.Nation, new System.Collections.ArrayList() { "汉族", "蒙古族", "回族", "藏族", "维吾尔族", "苗族", "壮族", "布依族", "朝鲜族", "满族", "其他民族" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                血型：
            </th>
            <td>
                @Html.DropDownListFor(n => n.BloodType, new System.Collections.ArrayList() { "A型", "B型", "AB型", "O型", "其他" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                体型：
            </th>
            <td>@Html.DropDownListFor(n => n.Figure, new System.Collections.ArrayList() { "很瘦", "较瘦", "苗条", "匀称", "高挑", "丰满", "健壮", "较胖", "胖" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                掌握语言：
            </th>
            <td>
                @Html.DropDownListFor(n => n.MasterLanguage, new System.Collections.ArrayList() { "中文（普通话）", "中文（广东话）", "英语", "法语", "日语", "韩语", "德语", "意大利语", "俄语" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                家务：
            </th>
            <td>@Html.DropDownListFor(n => n.Housework, new System.Collections.ArrayList() { "任劳任怨", "希望对方承担家务", "一起分工合作", "看各自忙闲协商分担" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                厨艺：
            </th>
            <td>
                @Html.DropDownListFor(n => n.Culinary, new System.Collections.ArrayList() { "色香味俱全", "能做几样可口小菜", "不太会愿意为心爱的人学习" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                何时结婚：
            </th>
            <td>@Html.DropDownListFor(n => n.WhenMarried, new System.Collections.ArrayList() { "及时闪婚", "一年以内", "两年以内", "三年以内", "时机成熟时结婚" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })</td>
            <th>
                是否愿意父母同住：
            </th>
            <td>
                @Html.DropDownListFor(n => n.LiveParents, new System.Collections.ArrayList() { "愿意", "不愿意", "视具体情况而定" }, new { @class = "tn-dropdownlist tnc-basicinfor-bday" })
            </td>
        </tr>
        <tr>
            <th>
                喜欢的电影：
            </th>
            <td>@Html.TextBoxFor(n => n.LikeMovie)</td>
            <th>

            </th>
            <td></td>
        </tr>

<script type="text/javascript">
    function OnSuccessCallBack(data) {
        art.dialog.tips(data.MessageContent, 1.5, data.MessageType, function () {
            window.location.reload();
        });
    }
    $(document).ready(function () {
        window.location.href = "#StatusMessage";
        $("div[name='StatusMessageDiv'] a.tn-smallicon-cross").click(function () {
            $(this).parents("div[name='StatusMessageDiv']:first").fadeOut("normal");
        });
    });
</script>